package com.qidianit.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/9/26 -11:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkReport {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 类型
     */
    private Long type;

    /**
     * 编码（非空）
     */
    private String code;


    /**
     * 任务编码
     */
    private String taskCode;


    /**
     * 汇报数量
     */
    private Integer workReportQuantity;

    /**
     * 提交人
     */
    private Long submitBy;

    /**
     * 审核人
     */
    private Long checkBy;

    /**
     * 汇报时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime reportTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private Long status;

    /**
     * 删除标记
     */
    private String deleteFlag;

    /**
     * 创建时间（默认当前时间）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间（默认当前时间）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    //瞬时
    private String materialCode;
    private String materialName;
    private String productionOrderCode;
    private String workstationName;
    private SysDictData typeDictData;
    private SysDictData statusDictData;
    private Process process;
    private Material material;
    private SysUser submitUser;
    private SysUser checkUser;

}
